package com.organize.controllers;

import com.autumn.security.annotation.RequestCSRFProtect;
import com.autumn.web.controllers.AbstractEditController;
import com.organize.application.dto.employee.EmployeeInput;
import com.organize.application.dto.employee.EmployeeOutput;
import com.organize.application.services.EmployeeAppService;
import io.swagger.annotations.Api;
import org.apache.shiro.authz.annotation.RequiresUser;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 职员管理
 * <p>
 * </p>
 *
 * @description TODO
 * @author: 老码农
 * @create: 2020-10-17 15:40
 **/
@RestController
@RequestMapping("/org/employee")
@Api(tags = "职员管理")
@RequiresUser
// 启用 CSRF 攻击防护，需要配置文件启用才有效
@RequestCSRFProtect
public class EmployeeController extends AbstractEditController<EmployeeAppService,
        EmployeeInput, EmployeeInput, EmployeeOutput, EmployeeOutput> {

    public EmployeeController(EmployeeAppService service) {
        super(service);
    }
}
